home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12083 < prev    next >
Encoding:
Text File  |  1996-08-05  |  808 b   |  40 lines

  1. Path: noc.netcom.net!news
  2. From: Tarang Deshpande <tarang@willows.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: beginner question
  5. Date: Thu, 28 Mar 1996 13:04:18 -0800
  6. Organization: NETCOM Network Operations
  7. Message-ID: <315AFED2.7466@willows.com>
  8. References: <4jc3sr$1ggu@uvaix3e1.comp.UVic.CA> <4jdo7l$de2@sparcserver.lrz-muenchen.de>
  9. NNTP-Posting-Host: daffy.willows.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
  14.  
  15. Kurt Watzka wrote:
  16. >   struct FOO
  17. >   {
  18. >     int bar;
  19. >   }
  20. > FOO is the "struct tag" of that struct, i.e. you can use it to declare
  21. > variables of that type as in
  22. >   struct FOO s;
  23.  
  24. So then what does the following mean:
  25.  
  26. struct _FOO
  27. {
  28.     int    bar;
  29. } FOO;
  30.  
  31. struct _FOO s1;
  32. FOO         s2;
  33.  
  34.  
  35. Why?
  36.